﻿using System.Collections.Generic;
using VCC.Model;
using System.Web.Mvc;
using VCC.Lib.Paging;
namespace VCC.Site.ViewModels
{
    public class AdCreatModel
    {
        public IList<State> States { set;get; }
        public IList<SelectListItem> CategoryBuiltTree { get; set; }
        public IList<Category> Categories { get; set; }
        public Ad Ad { get; set; }
        public string CaptchaCode { get; set; }
        public User CurrentUser { set; get; }
        public IList<CostType> CostTypes { set; get;}
        //public IList<VIPType> VIPTypes { set; get; }
        public Dictionary<object, object> VIPTypes = new Dictionary<object, object>();
        public string AdCost { set; get; }
    }
    public class AdDetailsModel
    {
        public Ad Ad { get; set; }
        public IPagedList<Ad> AdSameCateLocation { get; set; }
        public List<Gallery> Galleries { get; set; }
        public int TotalAdSameUser { get; set; }
        public List<Tag> Tags { get; set; }
        public Category ParentCategory { set; get; }
        public Category ChildenCategory { set; get; }
        public Suburb Suburb { set; get; }
        public bool IsNotEnough { set; get; }
    }
    public class PathSubMenuModel
    {
        public Category ParentCategory { get; set; }
        public Category ChildenCategory { get; set; }
        public Suburb Suburb { get; set; }
    }
    public class ViewListAdModel {
        public IList<Ad> Ads { set; get; }
    }
    public class BoxQuickSearchAdModel {
        public IList<SelectListItem> Categories { set; get; }
        public string Keywords { set; get; }
        public int CurrentCateID { set; get; }
    }
    public class AdIndexModel
    {
        public IPagedList<Ad> Ads { get; set; }
        public Category Category { set; get; }
        public IList<Suburb> Suburbs { set; get;}
        public string TotalAd { set; get;}
        public string ListSubID { get; set; }
    }
    public class BoxCategoryLeftModel
    {
        public IList<Category> ParentCategories { set; get; }
        public int CurrentCateID { set; get; }
        public string Domain { set; get; }
    }
    public class CreateAdsuccessfulModel {
        public Ad Ad { set; get; }
        public string Domain { set; get; }
    }
}
